import request from '@/utils/request'

// 查询分佣预设组列表
export function listCommissionPresetGroup(query) {
  return request({
    url: '/hmk/commissionPresetGroup/list',
    method: 'get',
    params: query
  })
}

// 查询分佣预设组详细
export function getCommissionPresetGroup(id) {
  return request({
    url: '/hmk/commissionPresetGroup/' + id,
    method: 'get'
  })
}

export function selectAll() {
  return request({
    url: '/hmk/commissionPresetGroup/selectAll',
    method: 'get'
  })
}


// 新增分佣预设组
export function addCommissionPresetGroup(data) {
  return request({
    url: '/hmk/commissionPresetGroup',
    method: 'post',
    data: data
  })
}

// 修改分佣预设组
export function updateCommissionPresetGroup(data) {
  return request({
    url: '/hmk/commissionPresetGroup',
    method: 'put',
    data: data
  })
}

// 删除分佣预设组
export function delCommissionPresetGroup(id) {
  return request({
    url: '/hmk/commissionPresetGroup/' + id,
    method: 'delete'
  })
}
